<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <title>临时医嘱</title>
</head>
<style type="text/css">
    p {
        font-family:"楷体";
        margin: 0;
        margin-top: 10px;
    }
</style>
<style  media="print" type="text/css">
    .noPrint{DISPLAY: none;}
</style>
<body>
<div>
    <div style="width: 20cm;" align="center">
        <div>
            <table width="800px" >
                <tr>
                    <th style="text-align: right;visibility:hidden" width="20%"> 患者姓名:</th>
                    <td width="10%" style="visibility:hidden"><p th:text="1"></p></td>
                    <td colspan="6" width="30%"></td>
                    <th  width="20%" style="visibility:hidden">患者病历号:</th>
                    <td style="text-align: left" width="20%"></td>
                </tr>
                <tr>
                    <th style="text-align: center;" colspan="10">临时医嘱</th>
                </tr>
                <tr>
                    <table width="800px">
                        <tr>
                            <th width="12%" style="text-align: center">执行时间</th>
                            <th width="12%" style="text-align: center">药物/项目</th>
                            <th width="10%" style="text-align: center">医生</th>
                            <th width="10%" style="text-align: center">护士</th>
                            <th width="12%" style="text-align: center">参数</th>
                            <th width="12%" style="text-align: center">执行内容</th>
                            <th width="12%" style="text-align: center">收费/划扣</th>
                        </tr>
                        <div th:each="item : ${executionRecords}">
                            <tr>
                                <td style="text-align: center"><p  th:text="${#calendars.format(item.creationTime,'yyyy-MM-dd')}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.itemName}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.doctorName}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.createdBy}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.doctorRemark}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.executeContent}"></p></td>
                                <td style="text-align: center"><p  th:text="${item.cost}"></p></td>
                            </tr>
                        </div>
                    </table>
                </tr>
            </table>
            <table width="800" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td align="right"><button  class="noPrint" onClick="window.print()">打印</button>&nbsp;</td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>